package com.hutao.chargingpile.pitfall.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.hutao.chargingpile.pitfall.pojo.query.CpHitchQuery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 故障表
 * </p>
 *
 * @author HuTao
 * @since 2023-03-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CpHitch对象", description="故障表")
public class CpHitchVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "故障id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "故障类型 0:通讯故障 1:网关故障 2:配件故障 3:主板故障 4:过流 5:过压 6:电器短路 7:线路老化")
    private Long hitchType;

    @ApiModelProperty(value = "充电站点名称")
    private String addressSite;

    @ApiModelProperty(value = "充电桩型号")
    private String chargingpileType;

    @ApiModelProperty(value = "充电枪编号")
    private String number;

    @ApiModelProperty(value = "发生时间")
    private LocalDateTime regTime;

    @ApiModelProperty(value = "详细地址")
    private String address;

    @ApiModelProperty(value = "站点联系人")
    private String contacts;

    @ApiModelProperty(value = "联系人电话")
    private Long contactsPhone;

    @ApiModelProperty(value = "紧急程度 0：一般 1：紧急 2：加急 3：超加急")
    private Long rank;

    @ApiModelProperty(value = "隐患状态 0：登记 1：已派单 2：未处理 3：处理中 4：已处理 5：已完成")
    private Long status;

    @ApiModelProperty(value = "故障内容")
    private String content;

    @ApiModelProperty(value = "资料附件")
    private String hiddenImg;

    @ApiModelProperty(value = "负责人")
    private String person;

    @ApiModelProperty(value = "预计完成时间")
    private LocalDateTime estimate;

    @ApiModelProperty(value = "任务内容")
    private String assContent;

    @ApiModelProperty(value = "创建人")
    private String createPerson;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createpersonTime;

    @ApiModelProperty(value = "退回原因")
    private String returnContent;

    @ApiModelProperty(value = "新增时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "0未删除1已删除")
    @TableLogic
    private Long isDeleted;

    @ApiModelProperty(value = "办理表")
    private CpHitchDeal cpHitchDeal;
}

